﻿using NHibernate.Burrow.AppBlock.DAOBases;
using NHibernate.Criterion;

namespace JinTai.WebSite.Dao
{
    public class FashiScheduleDao : GenericDAO<FashiSchedule>
    {
        public FashiSchedule GetTopSchedule()
        {
            return CreateCriteria().Add(Restrictions.Eq("Show", true)).UniqueResult<FashiSchedule>();
        }
    }
}